<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="zh" xml:lang="zh">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>工具向导: 使用 Rational Rose 创建用例实现</title>
<meta content="ToolMentor" name="uma.type">
<meta content="create_use_case_realization" name="uma.name">
<meta content="使用 Rational Rose 创建用例实现" name="uma.presentationName">
<meta content="Tool:rup_rose_classic:Rational Rose" name="uma.category">
<meta name="element_type" content="tool_mentor">
<meta content="Rational Rose" name="tool">
<meta content="description" name="filetype">
<meta name="role" content="">
<link type="text/css" href="./../../../css/default.css" rel="StyleSheet">
<script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageResource.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSubSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageToolbar.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/contentPage.js"></script><script language="JavaScript" type="text/javascript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_gpYSoAILEdq-_NKqZM1EhA", "_qS-iwAIOEdqTna4sZVFRow", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_zRigkAILEdq-_NKqZM1EhA", "_U5tiUAISEdqTna4sZVFRow", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_AUv4MAIMEdq-_NKqZM1EhA", "_5ZuQsAIUEdqEutyfYo0quQ", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_F1OgYAIbEdqEutyfYo0quQ", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"]}];
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap="true" class="pageTitle">工具向导：使用 Rational Rose 创建用例实现</td><td width="100%">
<div id="contentPageToolbar" align="right"></div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="pageTitleSeparator"><img height="1" title="" alt="" src="./../../../images/shim.gif"></td>
</tr>
</table>
<div class="overview">
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<tr>
<td width="50"><img title="" alt="" src="./../../../images/toolmentor.gif"></td><td>
<table cellpadding="0" cellspacing="0" border="0" class="overviewTable">
<tr>
<td valign="top">此工具向导描述如何在 Rational Rose 中表示用例实现。</td>
</tr>
<tr>
<td>工具：<a href="./../../../core.base_rup/tools/rup_rose_classic_20F2524D.html" guid="{06FB737B-5D74-4C3B-98F4-36153CFB2E34}">Rational Rose</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">关系</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">相关元素</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../core.base_rup/tasks/architectural_analysis_2B9BE03.html" guid="{8CB48402-D4C5-4E17-BB33-507315CB1BBF}">体系结构分析</a>
</li>
<li>
<a href="./../../../core.base_rup/tasks/use_case_design_92D13EEE.html" guid="{76E2B93D-051C-4B8C-BEA1-B40A40CBD986}">用例设计</a>
</li>
<li>
<a href="./../../../core.base_rup/tasks/use_case_analysis_A6990185.html" guid="{28014615-A62F-452D-B821-30C7CAB0EC44}">用例分析</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">主要描述</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<td class="sectionTableSingleCell"><h3>
    概述
</h3>
<p>
    以下为创建<a class="elementLinkWithUserText" href="./../../../core.base_rup/workproducts/rup_use_case_realization_E4F713BD.html" guid="{87EB094F-095B-4981-ACC3-319B3B298641}">工作产品：用例实现</a>要执行的步骤的摘要：
</p>
<ol>
    <li class="mvd-P">
        <p>
            <a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/create_use_case_realization_1212EF9.html" guid="{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}">在相应模型中创建<b><span             style="FONT-WEIGHT: normal">用例实现</span></b>程序包</a>
        </p>
    </li>
    <li class="mvd-P">
        <a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/create_use_case_realization_1212EF9.html" guid="{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}">创建用例实现</a>
    </li>
    <li class="mvd-P">
        <a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/create_use_case_realization_1212EF9.html" guid="{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}">创建用例及其用例实现之间的可跟踪性</a>
    </li>
</ol>
<h3>
    1. <a id="Create the UC Realization Pkg" name="Create the UC Realization Pkg"></a>在相应模型中创建<b>用例实现</b>程序包<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/create_use_case_realization_1212EF9.html" guid="{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"><img height="20" alt="回到页首" hspace="0" src="./../../../core.base_rup/resources/top.gif"     width="26" border="0" /></a>
</h3>
<p>
    可以在<a class="elementLinkWithUserText" href="./../../../core.base_rup/workproducts/rup_analysis_model_76C3B70C.html" guid="{98EA224C-36F6-46E6-AB36-2999382B58B3}">工作产品：分析模型</a>和／或<a class="elementLinkWithUserText" href="./../../../core.base_rup/workproducts/rup_design_model_2830034D.html" guid="{8CDAEAD4-5E84-4F50-87FD-3240ED047DE7}">工作产品：设计模型</a>中创建用例实现。这些工作产品随即在模型的“逻辑”视图内表示为程序包。有关创建这些程序包的信息，请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/capture_results_use_case_analysis_7C8B82CF.html" guid="{F33662D0-DB04-4B24-AFC4-EFEFCDD20D42}">工具向导：捕获用例分析的结果</a>和<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/manage_design_model_1D45D75E.html" guid="{BD1DD906-031C-4D8C-8078-87B6869A8C14}">工具向导：管理设计模型</a>。创建程序包时，请将其命名为“用例实现”。为程序包新建类图时，请将其命名为“可跟踪性”。
</p>
<h3>
    2. <a id="Creating a Use-Case Realization" name="Creating a Use-Case Realization"></a>创建用例实现<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/create_use_case_realization_1212EF9.html" guid="{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"><img height="20" alt="回到页首" hspace="0" src="./../../../core.base_rup/resources/top.gif"     width="26" border="0" /></a>
</h3>
<p>
    用例实现表示用例的设计透视图。这是一个用于对与用例设计相关的若干工作产品进行分组的组织模型元素。用例与用例实现分开，因此可分别对其进行管理，从而可以在不影响基线用例的情况下更改用例的设计。对于用例模型中的每个用例，设计模型中都有一个与该用例有依赖关系（已构造化的
    &lt;&lt;realize&gt;&gt;）的用例实现。
</p>
<p>
    要创建用例实现，请在“用例视图”程序包中新建并命名一个用例，然后将其拖放到“用例实现”程序包中。使用“用例规范”将构造型 &lt;&lt;use-case realization&gt;&gt;
    分配给该用例。如果显示了表明两个名称空间中均存在该用例的对话框，请单击<b>确定</b>。在创建的用例实现程序包中，创建一个用于管理该用例实现的程序包，并为其指定与该用例实现相同的名称。有关创建与命名程序包的信息，请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/manage_design_model_1D45D75E.html" guid="{BD1DD906-031C-4D8C-8078-87B6869A8C14}">工具向导：管理设计模型</a>。在浏览器中，将该用例实现拖放到这个新创建的程序包中。这个用例实现现在存在于其程序包的“设计”或“分析”模型中，并与其他所有用例实现组织在一起。为每一用例实现分配一个程序包可对工作产品进行独立的管理和版本控制。
</p>
<h3>
    3. <a id="Creating traceability" name="Creating traceability"></a>创建用例及其用例实现之间的可跟踪性<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/toolmentors/create_use_case_realization_1212EF9.html" guid="{AAB8D0D6-C666-4F4D-9D26-2AF026558A4C}"><img height="20" alt="回到页首" hspace="0" src="./../../../core.base_rup/resources/top.gif"     width="26" border="0" /></a>
</h3>
<p>
    要创建用例及其用例实现之间的可跟踪性，请将用例从“用例”视图中拖放到“用例实现”程序包内的“可跟踪性”图中。从“用例实现”程序包，将“用例实现”拖到“可跟踪性”图中，并放到用例旁边。然后，使用图工具栏的关联工具建立用例实现与用例之间的关联。
    打开“关联规范”并为其分配构造型 &lt;&lt;realize&gt;&gt;。
</p></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="copyright">
<tr>
<td class="copyright"><p>
    &copy; &nbsp;Copyright IBM Corp.&nbsp;1987, 2006. &nbsp;All Rights Reserved.
</p></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script language="JavaScript" type="text/javascript">
				contentPage.onload();
			</script>
</html>
